<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:t="http://myfaces.apache.org/tomahawk"
	  xmlns:a4j="http://richfaces.org/a4j">

	<ui:composition template="templates/body_template.xhtml" >

		<ui:define name="css">
		</ui:define>

		<ui:define name="scripts">
		</ui:define>


		<ui:define name="page_title">
			Upload Ontology
		</ui:define>


		<ui:define name="hdr_logo">
		</ui:define>

		<ui:define name="hdr_title"/>
		<ui:define name="tmp">
			<a4j:form style="">
				<div class="wrapper_search">
					<h:inputText value="#{viewMBean.search}" action="#{viewMBean.processSearch}" styleClass="search"/>
				</div>
				<h:commandLink value="Search" styleClass="search"/>
			</a4j:form>
		</ui:define>

		<ui:define name="hdr_info" />

		<ui:define name="navcenter"/>


		<ui:define name="navright">

		</ui:define>


		<ui:define name="content">
			<a4j:form enctype="multipart/form-data">
				<t:inputFileUpload id="fileupload" value="#{fileUploadMBean.upFile}"
						  size="20" />
				<h:commandButton value="Load the file" action="#{fileUploadMBean.upload}" />
				<t:outputText value="File Uploaded Successfully."
					 rendered="#{fileUploadMBean.rendSuccess}"
					 style="color:green;font-weight:bold"/>
				<t:outputText value="Error in File Uploading."
					 rendered="#{fileUploadMBean.rendFailure}"
					 style="color:red;font-weight:bold"/>

			</a4j:form>
		</ui:define>

		<ui:define name="bottomLinks">
		</ui:define>

	</ui:composition>
</html>
